<template>
	  <el-table
	    border
	    style="width: 100%"
	    :data="partmentList"
		>
	    <el-table-column
	      prop="time"
	      label="时间"
	      width="180">
	    </el-table-column>
	    <el-table-column
	      prop="patmentName"
	      label="部门">
	    </el-table-column>
		<el-table-column
		  prop="needMoney"
		  label="需缴费">
		</el-table-column>
        <el-table-column
		  prop="formalities"
		  label="手续费">
		</el-table-column>
        <el-table-column
		  prop="totalKM"
		  label="公里数">
		</el-table-column>
	  </el-table>
</template>

<script>
import request from '../api/request.js'
export default {
    data(){
        return{
partmentList:[]
        }
    },
    created(){
        this.getPartmentList()
      },
    methods: {
      getPartmentList(){
          request({
              url:'/order/getDeptCount',
              method: 'post'
          }).then(res => {
              console.log(res)
              this.partmentList = res.data
              console.log(this.partmentList)
          }).catch(err => {
              console.log(err)
          })
      }
    }
}
</script>